We currently let some backgrounds "fall through the cracks" if
a bunch of change notifications come in at once.
This commit fixes that.
https://bugzilla.gnome.org/show_bug.cgi?id=697395
time: FADE_ANIMATION_TIME,
transition: 'easeOutQuad',
onComplete: Lang.bind(this, function() {
- if (this.background == background) {
+ if (this._newBackground == newBackground) {
this.background = newBackground;
this._newBackground = null;
- background.actor.destroy();
+ } else {
+ newBackground.actor.destroy();
}
+
+ background.actor.destroy();
+
this.emit('changed');
})
});